<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page isELIgnored="false"%>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>发布试卷</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/TeacherAll.css">
</head>
<body>
    <div class="UlWc_Div">
        <h1 style="text-align: center;">发布成功</h1>
        <p style="position: absolute;top: 20%;">将试卷网址分享给其他人</p>
        <input class="UlWc_Text" id="UlWc_Text" readonly value="${urlAz}" type="text">
        <input class="UlWc_Btn" onclick="copyBtn()" id="UlWc_Btn" type="button">
    </div>
</body>
<script>

    function copyBtn(){
        var Url=document.getElementById("UlWc_Text");
        Url.select(); // 选择对象
        document.execCommand("Copy"); // 执行浏览器复制命令
    }

</script>
</html>